package edu.hit;

public class Data {

    public Object getValue() {
        return value;
    }

    //应该用包装类型Long，而不是基本类型long，因为要赋null
    public Long getCreatedAt() {
        return createdAt;
    }

    public Long getExpiredIn() {
        return expiredIn;
    }

    private Object value;
    private Long createdAt;
    private Long expiredIn;


    public Data(Object value,Long createdAt,Long expiredIn) {
        this.value = value;
        this.createdAt = createdAt;
        this.expiredIn = expiredIn;
    }



    @Override
    public String toString() {
        return "edu.hit.Data{" +
                "value=" + value +
                ", createdAt=" + createdAt +
                ", expiredIn=" + expiredIn +
                '}';
    }
}
